/*
 * Copyright (C) 2013 AdminsProL2
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */

package com.l2jserver.gameserver.instancemanager.votereward;

import java.util.logging.Logger;

import com.l2jserver.Config;

/**
 * @author fissban
 */

public class VoteManager
{
	static Logger _log = Logger.getLogger(VoteManager.class.getName());
	
	VoteManager()
	{
		if (Config.VOTE_SYSTEM_ENABLE)
		{
			if (Config.VOTE_GLOBAL)
			{
				_log.info("[VoteReward] Global Enabled #");
				VoteRewardGlobal.getInstance();
			}
			else
			{
				if (Config.VOTE_SYSTEM_HOPZONE)
				{
					_log.info("[VoteReward] Hopzone Enabled #");
					VoteRewardHopzone.getInstance();
				}
				else
				{
					_log.info("[VoteReward] Hopzone Disable #");
				}
				if (Config.VOTE_SYSTEM_TOPZONE)
				{
					_log.info("[VoteReward] Topzone Enabled #");
					VoteRewardTopzone.getInstance();
				}
				else
				{
					_log.info("[VoteReward] Topzone Disable #");
				}
				if (Config.VOTE_SYSTEM_BRASIL)
				{
					_log.info("[VoteReward] TopBrasil Enabled #");
					VoteRewardBrasil.getInstance();
				}
				else
				{
					_log.info("[VoteReward] TopBrasil Disable #");
				}
				if (Config.VOTE_SYSTEM_ADMINSPRO)
				{
					_log.info("[VoteReward] TopAdminsPro Enabled #");
					VoteRewardAdminsPro.getInstance();
				}
				else
				{
					_log.info("[VoteReward] TopAdminsPro Disable #");
				}
			}
		}
		else
		{
			_log.info("[AutoVoteRewardManager] Hopzone/Topzone/TopBrasil/AdminsPro : Disable.");
		}
	}
	
	public static VoteManager getInstance()
	{
		return SingletonHolder._instance;
	}
	
	static class SingletonHolder
	{
		protected static final VoteManager _instance = new VoteManager();
	}
	
}
